//
//  @ Project : Galaxy Star Trading System
//  @ File Name : OrderCondition.h
//  @ Date : 2014/9/5
//  @ Author : 
//
//
#if !defined(_ORDERCONDITION_H)
#define _ORDERCONDITION_H

namespace GSTrader
{
	namespace TradeBase
	{
		class CParkedOrder;
		class TRADE_BASE_API COrderCondition
		{
		public:
			COrderCondition();
			virtual ~COrderCondition();

			string ToString(CInstrument* pInstrument, CParkedOrder* pOrder);
			bool Match(CDepthMarketData* pMarketData);
			bool Match(CDepthMarketData* pMarketData, CParkedOrder* pOrder);
		public:
			int m_nPriceType;
			int m_nConditionType;
			double m_dPrice;
			bool m_bCondition;
			time_t m_time;
		};
	}
}

#endif // _ORDERCONDITION_H

